package com.io;

public class Test2 {
    public static void main(String[] args) {
        //杨慧三角
        int n=5;
        for(int i=1;i<5;i++){
            for(int j=1;j<=2*i-1;j++){
                if(j==1||j==2*i-1){
                    System.out.print(1+" ");
                }
                System.out.print(" ");
            }
            System.out.println();
        }
    }
}
